package org.xiaojl.modules.sys.service.impl;

import java.util.Arrays;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xiaojl.modules.sys.entity.SysModule;
import org.xiaojl.modules.sys.mapper.SysModuleMapper;
import org.xiaojl.modules.sys.service.SysModuleService;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;

/**
 * <p>
 * 系统模块表 服务实现类
 * </p>
 *
 * @author xiaojl
 * @since 2017-08-31
 */
@Service
public class SysModuleServiceImpl extends ServiceImpl<SysModuleMapper, SysModule> implements SysModuleService {

	@Autowired
	private SysModuleMapper sysModuleMapper;
	
	@Override
	public List<SysModule> selectListByRoleId(String roleIds) {
		List<String> roldIdsList = Arrays.asList(roleIds.split(","));
		return sysModuleMapper.selectListByRoleId(roldIdsList);
	}
	
}
